import { request } from '../network/request'

// 搜索结果
export function getResult(keywords,type,limit) {
    return request({
        url: '/search',
        params: {
            keywords,
            type,
            limit
        }
    })
}

// 播放音乐
export function playMusic(id) {
    return request({
        url: '/song/url',
        params: {
            id
        }
    })
}